﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omabar.Model
{
    public class CUSTOMIZEDTRAVEL
    {
        public string CT_ID { get; set; }
        public string DESTINATION { get; set; }
        public string STARTCITY { get; set; }
        public short TRAVELDAYS { get; set; }
        public short ADULT { get; set; }
        public short CHILD { get; set; }
        public short BUDGET { get; set; }
        public DateTime STARTDATE { get; set; }
        public string THEMES { get; set; }
        public string HOBBYS { get; set; }
        public string ADDITIONAL { get; set; }
        public string USERNAME { get; set; }
        public string USERID { get; set; }
        public string TELEPHONE { get; set; }
        public string EMAIL { get; set; }

        public string[] ThemeArray
        {
            get
            {
                try
                {
                    return THEMES.Split(',');
                }
                catch (Exception ex)
                {
                    return new string[] { };
                }
            }
        }

        public string[] HobbyArray
        {
            get
            {
                try
                {
                    return HOBBYS.Split(',');
                }
                catch (Exception ex)
                {
                    return new string[] { };
                }
            }
        }
    }
}
